package com.nursinghome.common.mapper;

import com.nursinghome.bean.Category;

import java.util.List;

/**
* @author 程硕
* @createDate 2025-04-07 00:25:48
* @Entity com.nursinghome.bean.Category
*/
public interface CategoryMapper {
    //新增
    Integer insert(Category category);
    //修改
    Integer update(Category category);
    //根据id回显数据
    Category selectById(Integer id);
    // 查询父分类下的所有子分类
    List<Category> selectByParentId(Integer parentId);
    //查询所有
    List<Category> selectAll(Category category);
}
